libjson-xs-perl — security advisory
JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact
- Products
- libjson-xs-perl
- Affected versions
- 2.340-1, 2.340-1build1, 3.010-2, 3.010-2build1, 3.030-1build1, 3.040-1, 4.020-1, 4.020-1build1, 4.030-1build2, 4.030-1build3, 4.030-2, 4.030-2build1, 4.030-2build2, 4.030-2build3, 4.030-2build4
- Fixed versions
- 4.040-0ubuntu0.22.04.1, 4.040-0ubuntu0.24.04.1, 4.040-1
- CVEs
- CVE-2025-40928
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:28 UTC · Revision 1
Source evidence
JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact
osv:UBUNTU-CVE-2025-40928
libjson-xs-perl
Fixed versions: Not specified
libjson-xs-perl
Fixed versions: Not specified
libjson-xs-perl
Fixed versions: Not specified
libjson-xs-perl
Fixed versions: Not specified
libjson-xs-perl
Fixed versions: 4.040-0ubuntu0.22.04.1
libjson-xs-perl
Fixed versions: 4.040-0ubuntu0.24.04.1
libjson-xs-perl
Fixed versions: 4.040-1
libjson-xs-perl
Fixed versions: 4.040-1
libjson-xs-perl
Fixed versions: 4.040-1
Complete source record
{
"id": "1b59794f9150828611d8efac77cdb7163360198e64e75100bd88f8e567521d9f",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-40928",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-40928",
"summary": "JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact",
"evidence": "osv:UBUNTU-CVE-2025-40928",
"products": [
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.340-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.340-1build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.010-2",
"evidence": "/affected/1/versions"
},
{
"value": "3.010-2build1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.030-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "3.040-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.020-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.020-1build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.040-0ubuntu0.22.04.1",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "4.030-1build2",
"evidence": "/affected/4/versions"
},
{
"value": "4.030-1build3",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.040-0ubuntu0.24.04.1",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": [
{
"value": "4.030-2",
"evidence": "/affected/5/versions"
},
{
"value": "4.030-2build1",
"evidence": "/affected/5/versions"
},
{
"value": "4.030-2build2",
"evidence": "/affected/5/versions"
},
{
"value": "4.030-2build3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.040-1",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": [
{
"value": "4.030-2build4",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.040-1",
"evidence": "/affected/7/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libjson-xs-perl",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.040-1",
"evidence": "/affected/8/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2025-40928",
"aliases": [
"UBUNTU-CVE-2025-40928"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"2.340-1",
"2.340-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "2.340-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"3.010-2",
"3.010-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "3.010-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.030-1build1",
"3.040-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "3.040-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"4.020-1",
"4.020-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.020-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.040-0ubuntu0.22.04.1"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"4.030-1build2",
"4.030-1build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.040-0ubuntu0.22.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.040-0ubuntu0.24.04.1"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.030-2",
"4.030-2build1",
"4.030-2build2",
"4.030-2build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.040-0ubuntu0.24.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.040-1"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.030-2build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.040-1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.040-1"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.040-1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.040-1"
}
]
}
],
"package": {
"name": "libjson-xs-perl",
"purl": "pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40928.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjson-xs-perl",
"binary_version": "4.040-1"
}
],
"availability": "No subscription required"
}
}
],
"modified": "2026-10-17T12:56:51.333307623Z",
"provider": "osv",
"upstream": [
"CVE-2025-40928"
],
"references": [
"https://ubuntu.com/security/CVE-2025-40928",
"https://www.cve.org/CVERecord?id=CVE-2025-40928",
"https://lists.security.metacpan.org/cve-announce/msg/32608909/",
"https://security.metacpan.org/patches/J/JSON-XS/4.03/CVE-2025-40928-r1.patch",
"https://metacpan.org/release/MLEHMANN/JSON-XS-4.03/source/XS.xs#L256",
"https://ubuntu.com/security/notices/USN-7750-1"
]
},
"related_cves": [
{
"value": "CVE-2025-40928",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356463,
"published_at": "2025-09-08T15:15:00+00:00"
}