CVE-2026-129115 (GCVE-0-2026-129115)

Vulnerability from cvelistv5 – Published: 2026-11-14 11:54 – Updated: 2026-11-14 11:54
VLAI
Title
JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result's serialisation grows the Perl stack under allow_tags in encode_rv
Summary
JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result's serialisation grows the Perl stack under allow_tags in encode_rv. With allow_tags, an object's FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer. When encoding a returned value calls back into Perl, through TO_JSON under convert_blessed or another FREEZE, and that callback grows the stack, the stack is reallocated while the saved pointer still refers to the freed block. Encoding such objects reads freed memory, and encode can return undef without an error.
Severity
No CVSS data available.
CWE
References
Impacted products
Vendor Product Version
Affected: 3.0 , < 4.05 (custom)
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "collectionURL": "https://cpan.org/modules",
          "defaultStatus": "unaffected",
          "modules": [
            "JSON::XS"
          ],
          "packageName": "JSON-XS",
          "packageURL": "pkg:cpan/JSON-XS",
          "programFiles": [
            "XS.xs"
          ],
          "programRoutines": [
            {
              "name": "encode_rv"
            }
          ],
          "repo": "https://cvs.schmorp.de/JSON-XS/",
          "versions": [
            {
              "lessThan": "4.05",
              "status": "affected",
              "version": "3.0",
              "versionType": "custom"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "Albert Gierlach (rivit)"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result\u0027s serialisation grows the Perl stack under allow_tags in encode_rv.\n\nWith allow_tags, an object\u0027s FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer. When encoding a returned value calls back into Perl, through TO_JSON under convert_blessed or another FREEZE, and that callback grows the stack, the stack is reallocated while the saved pointer still refers to the freed block.\n\nEncoding such objects reads freed memory, and encode can return undef without an error."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-416",
              "description": "CWE-416 Use After Free",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-14T11:54:10.777Z",
        "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "shortName": "CPANSec"
      },
      "references": [
        {
          "tags": [
            "release-notes"
          ],
          "url": "https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Upgrade to JSON-XS 4.05 or later."
        }
      ],
      "source": {
        "discovery": "UNKNOWN"
      },
      "timeline": [
        {
          "lang": "en",
          "time": "2026-11-13T00:00:00.000Z",
          "value": "Version 4.05 released with fix."
        }
      ],
      "title": "JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result\u0027s serialisation grows the Perl stack under allow_tags in encode_rv",
      "x_generator": {
        "engine": "cpansec-cna-tool 0.1"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
    "assignerShortName": "CPANSec",
    "cveId": "CVE-2026-129115",
    "datePublished": "2026-11-14T11:54:10.777Z",
    "dateReserved": "2026-11-13T15:54:37.501Z",
    "dateUpdated": "2026-11-14T11:54:10.777Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-129115",
      "date": "2026-11-16",
      "epss": "0.00204",
      "percentile": "0.10433"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://cpan.org/modules",
                "defaultStatus": "unaffected",
                "modules": [
                  "JSON::XS"
                ],
                "packageName": "JSON-XS",
                "packageURL": "pkg:cpan/JSON-XS",
                "programFiles": [
                  "XS.xs"
                ],
                "programRoutines": [
                  {
                    "name": "encode_rv"
                  }
                ],
                "repo": "https://cvs.schmorp.de/JSON-XS/",
                "versions": [
                  {
                    "lessThan": "4.05",
                    "status": "affected",
                    "version": "3.0",
                    "versionType": "custom"
                  }
                ]
              }
            ],
            "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result\u0027s serialisation grows the Perl stack under allow_tags in encode_rv.\n\nWith allow_tags, an object\u0027s FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer. When encoding a returned value calls back into Perl, through TO_JSON under convert_blessed or another FREEZE, and that callback grows the stack, the stack is reallocated while the saved pointer still refers to the freed block.\n\nEncoding such objects reads freed memory, and encode can return undef without an error."
          }
        ],
        "id": "CVE-2026-129115",
        "lastModified": "2026-11-14T12:17:44.120",
        "metrics": {},
        "published": "2026-11-14T12:17:44.120",
        "references": [
          {
            "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "url": "https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes"
          }
        ],
        "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…