diff --git a/advisories/github-reviewed/2025/05/GHSA-8qff-qr5q-5pr8/GHSA-8qff-qr5q-5pr8.json b/advisories/github-reviewed/2025/05/GHSA-8qff-qr5q-5pr8/GHSA-8qff-qr5q-5pr8.json new file mode 100644 index 00000000000..5f874d5e2d5 --- /dev/null +++ b/advisories/github-reviewed/2025/05/GHSA-8qff-qr5q-5pr8/GHSA-8qff-qr5q-5pr8.json @@ -0,0 +1,106 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-8qff-qr5q-5pr8", + "modified": "2025-05-19T21:54:43Z", + "published": "2025-05-19T21:54:43Z", + "aliases": [ + "CVE-2025-47934" + ], + "summary": "OpenPGP.js's message signature verification can be spoofed", + "details": "### Impact\nA maliciously modified message can be passed to either `openpgp.verify` or `openpgp.decrypt`, causing these functions to return a valid signature verification result while returning data that was not actually signed.\n\nThis flaw allows signature verifications of inline (non-detached) signed messages (using `openpgp.verify`) and signed-and-encrypted messages (using `openpgp.decrypt` with `verificationKeys`) to be spoofed, since both functions return extracted data that may not match the data that was originally signed. Detached signature verifications are not affected, as no signed data is returned in that case.\n\nIn order to spoof a message, the attacker needs a single valid message signature (inline or detached) as well as the plaintext data that was legitimately signed, and can then construct an inline-signed message or signed-and-encrypted message with any data of the attacker's choice, which will appear as legitimately signed by affected versions of OpenPGP.js.\n\nIn other words. any inline-signed message can be modified to return any other data (while still indicating that the signature was valid), and the same is true for signed+encrypted messages if the attacker can obtain a valid signature and encrypt a new message (of the attacker's choice) together with that signature.\n\nBoth OpenPGP.js v6 and v5 are affected. OpenPGP.js v4 is not affected.\n\n### Patches\nThe issue has been patched in versions 5.11.3 and 6.1.1.\n\n### Workarounds\n- When verifying inline-signed messages, extract the message and signature(s) from the message returned by `openpgp.readMessage`, and verify the(/each) signature as a detached signature by passing the signature and a new message containing only the data (created using `openpgp.createMessage`) to `openpgp.verify`.\n- When decrypting and verifying signed+encrypted messages, decrypt and verify the message in two steps, by first calling `openpgp.decrypt` without `verificationKeys`, and then passing the returned signature(s) and a new message containing the decrypted data (created using `openpgp.createMessage`) to `openpgp.verify`.\n\n### Acknowledgements\nWe would like to thank:\n- Edoardo Geraci and Thomas Rinsma of [Codean Labs](https://codeanlabs.com/) for finding and reporting this vulnerability\n- The [Sovereign Tech Agency](https://www.sovereign.tech/) for sponsoring the [OpenPGP.js bug bounty program](https://yeswehack.com/programs/openpgp-js-bug-bounty-program)\n- [YesWeHack](https://www.yeswehack.com/) for hosting the [OpenPGP.js bug bounty program](https://yeswehack.com/programs/openpgp-js-bug-bounty-program)", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "openpgp" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "5.0.1" + }, + { + "fixed": "5.11.3" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 5.11.2" + } + }, + { + "package": { + "ecosystem": "npm", + "name": "openpgp" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.0.0-alpha.0" + }, + { + "fixed": "6.1.1" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 6.1.0" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-8qff-qr5q-5pr8" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47934" + }, + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/commit/43f5f4e2bd67d0514d06acc60b6ee571a049c229" + }, + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/commit/843a69d0adbdec0f87af09f9000a9223e6614e5c" + }, + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/commit/bd54e8535ca29b3bef58a8c02296892e408be356" + }, + { + "type": "PACKAGE", + "url": "https://github.com/openpgpjs/openpgpjs" + }, + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/releases/tag/v5.11.3" + }, + { + "type": "WEB", + "url": "https://github.com/openpgpjs/openpgpjs/releases/tag/v6.1.1" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-347" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-05-19T21:54:43Z", + "nvd_published_at": "2025-05-19T19:15:52Z" + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json b/advisories/github-reviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json similarity index 65% rename from advisories/unreviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json rename to advisories/github-reviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json index 0da67b0ce7d..b95713e765b 100644 --- a/advisories/unreviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json +++ b/advisories/github-reviewed/2025/05/GHSA-qq3j-4f4f-9583/GHSA-qq3j-4f4f-9583.json @@ -1,11 +1,12 @@ { "schema_version": "1.4.0", "id": "GHSA-qq3j-4f4f-9583", - "modified": "2025-05-19T12:30:33Z", + "modified": "2025-05-19T21:53:36Z", "published": "2025-05-19T12:30:33Z", "aliases": [ "CVE-2025-2099" ], + "summary": "Hugging Face Transformers Regular Expression Denial of Service", "details": "A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a specially crafted payload, causing high CPU usage and potential application downtime, effectively resulting in a Denial of Service (DoS) scenario.", "severity": [ { @@ -13,16 +14,44 @@ "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L" } ], - "affected": [], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "transformers" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "4.50.0" + } + ] + } + ] + } + ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2099" }, + { + "type": "WEB", + "url": "https://github.com/huggingface/transformers/pull/36648" + }, { "type": "WEB", "url": "https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57" }, + { + "type": "PACKAGE", + "url": "https://github.com/huggingface/transformers" + }, { "type": "WEB", "url": "https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4" @@ -33,8 +62,8 @@ "CWE-1333" ], "severity": "MODERATE", - "github_reviewed": false, - "github_reviewed_at": null, + "github_reviewed": true, + "github_reviewed_at": "2025-05-19T21:53:36Z", "nvd_published_at": "2025-05-19T12:15:19Z" } } \ No newline at end of file