Skip to content

Commit d39ac72

Browse files
1 parent 1755eaa commit d39ac72

2 files changed

Lines changed: 130 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-p2gh-cfq4-4wjc",
4+
"modified": "2026-03-25T21:02:08Z",
5+
"published": "2026-03-25T21:02:08Z",
6+
"aliases": [],
7+
"summary": "Protobuf: Denial of Service issue through malicious messages containing negative varints or deep recursion",
8+
"details": "### Impact\nA Denial of Service (DoS) vulnerability exists in the Protobuf PHP library during the parsing of untrusted input. Maliciously structured messages—specifically those containing negative `varint`s or deep recursion—can be used to crash the application, impacting service availability.\n\n### Patches\nPatches have been released to 5.34.0-RC1 and 4.33.6.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "Packagist",
19+
"name": "google/protobuf"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "4.33.6"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-p2gh-cfq4-4wjc"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/protocolbuffers/protobuf/issues/24159"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/protocolbuffers/protobuf/issues/25067"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://github.com/protocolbuffers/protobuf/commit/60e93d2d104f2af9cd345b1c6f3891d91430244a"
52+
},
53+
{
54+
"type": "WEB",
55+
"url": "https://github.com/protocolbuffers/protobuf/commit/c8e9b27d95c6ab2d0668b5889e7dac2c477b7038"
56+
},
57+
{
58+
"type": "PACKAGE",
59+
"url": "https://github.com/protocolbuffers/protobuf"
60+
}
61+
],
62+
"database_specific": {
63+
"cwe_ids": [
64+
"CWE-400"
65+
],
66+
"severity": "HIGH",
67+
"github_reviewed": true,
68+
"github_reviewed_at": "2026-03-25T21:02:08Z",
69+
"nvd_published_at": null
70+
}
71+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-v3rj-xjv7-4jmq",
4+
"modified": "2026-03-25T21:03:56Z",
5+
"published": "2026-03-25T21:03:56Z",
6+
"aliases": [],
7+
"summary": "smol-toml: Denial of Service via TOML documents containing thousands of consecutive commented lines",
8+
"details": "### Summary\nAn attacker can send a maliciously crafted TOML to cause the parser to crash, because of a stack overflow caused by thousands of consecutive commented lines.\n\nThe library uses recursion internally while parsing to skip over commented lines, which can be exploited to crash an application that is processing arbitrary TOML documents.\n\n### Proof of concept\n```js\nrequire(\"smol-toml\").parse('# comment\\n'.repeat(8000) + 'key = \"value\"')\n```\n\n### Impact\nApplications which parse arbitrary TOML documents may suffer availability issues if they receive malicious input. If uncaught, the crash may cause the application itself to crash. The impact is deemed minor, as the function is already likely to throw errors on invalid input. Downstream users are supposed to properly handle errors in such situations.\n\nDue to the design of most JavaScript runtimes, the uncontrolled recursion does not lead to excessive memory usage and the execution is quickly aborted.\n\nAs a reminder, it is **strongly** advised when working with untrusted user input to expect errors to occur and to appropriately catch them.\n\n### Patches\nVersion 1.6.1 uses a different approach for parsing comments, which no longer involves recursion.\n\n### Workarounds\nWrap all invocations of `parse` and `stringify` in a try/catch block when dealing with untrusted user input.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V3",
12+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "npm",
19+
"name": "smol-toml"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "1.6.1"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-v3rj-xjv7-4jmq"
40+
},
41+
{
42+
"type": "PACKAGE",
43+
"url": "https://github.com/squirrelchat/smol-toml"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/squirrelchat/smol-toml/releases/tag/v1.6.1"
48+
}
49+
],
50+
"database_specific": {
51+
"cwe_ids": [
52+
"CWE-674"
53+
],
54+
"severity": "MODERATE",
55+
"github_reviewed": true,
56+
"github_reviewed_at": "2026-03-25T21:03:56Z",
57+
"nvd_published_at": null
58+
}
59+
}

0 commit comments

Comments
 (0)