CVE-2025-9157

Source
https://cve.org/CVERecord?id=CVE-2025-9157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-9157
Downstream
Related
Published
2025-08-19T20:02:08.552Z
Modified
2026-07-22T04:15:41.513470Z
Severity
  • 1.9 (Low) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free
Details

A vulnerability was determined in appneta tcpreplay up to 4.5.2-beta2. The impacted element is the function untruncpacket of the file src/tcpedit/editpacket.c of the component tcprewrite. Executing manipulation can lead to use after free. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. This patch is called 73008f261f1cdf7a1087dc8759115242696d35da. Applying a patch is advised to resolve this issue.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9157.json",
    "cna_assigner": "VulDB",
    "cwe_ids": [
        "CWE-119",
        "CWE-416"
    ]
}
References

Affected packages

Git / github.com/appneta/tcpreplay

Affected ranges

Type
GIT
Repo
https://github.com/appneta/tcpreplay
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "4.5.2-beta1"
        },
        {
            "last_affected": "4.5.2-beta1"
        },
        {
            "introduced": "4.5.2-beta2"
        },
        {
            "last_affected": "4.5.2-beta2"
        }
    ]
}

Affected versions

4.*
4.5.2-beta1
4.5.2-beta2
v4.*
v4.5.2-beta1
v4.5.2-beta2

Database specific

vanir_signatures
[
    {
        "digest": {
            "length": 635.0,
            "function_hash": "328974087607412167336739022779689300187"
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Function",
        "target": {
            "function": "kick_tx",
            "file": "src/common/sendpacket.h"
        },
        "id": "CVE-2025-9157-02b2c0e6",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "19628962945387001136090884324675050071",
                "113063468747715974689397983761155799458",
                "101940827274302632927073457419324534871",
                "66348440111304200964489554960775311010"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Line",
        "target": {
            "file": "src/common/sendpacket.h"
        },
        "id": "CVE-2025-9157-0e30c689",
        "deprecated": false
    },
    {
        "digest": {
            "length": 1925.0,
            "function_hash": "218537400204354682112518451400835951551"
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Function",
        "target": {
            "function": "untrunc_packet",
            "file": "src/tcpedit/edit_packet.c"
        },
        "id": "CVE-2025-9157-19ae82a7",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "311638448632200243448626576368432857809",
                "262969340522840702234456712089739320088",
                "29032276265835153425650451824912449775",
                "304385322920033473258116721690707467852"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Line",
        "target": {
            "file": "src/tcpedit/edit_packet.c"
        },
        "id": "CVE-2025-9157-7e369ec4",
        "deprecated": false
    },
    {
        "digest": {
            "length": 2403.0,
            "function_hash": "68992610171752203025817196903415234098"
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Function",
        "target": {
            "function": "rewrite_packets",
            "file": "src/tcprewrite.c"
        },
        "id": "CVE-2025-9157-a5284362",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91237455740800186492158709295618978963",
                "248279307656741066594751877305855593064",
                "263934966825246672697957659366178751789",
                "212386188721125584022658031331624949494"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da",
        "signature_type": "Line",
        "target": {
            "file": "src/tcprewrite.c"
        },
        "id": "CVE-2025-9157-d477aff5",
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-07-22T04:15:41Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9157.json"