CVE-2023-50246

Source
https://cve.org/CVERecord?id=CVE-2023-50246
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50246.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-50246
Aliases
  • GHSA-686w-5m7m-54vc
Downstream
Related
Published
2023-12-13T20:43:50Z
Modified
2026-08-12T14:51:42Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jq has heap-buffer-overflow vulnerability in the function decToString in decNumber.c
Details

jq is a command-line JSON processor. Version 1.7 is vulnerable to heap-based buffer overflow. Version 1.7.1 contains a patch for this issue.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-120",
        "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50246.json"
}
References

Affected packages

Git / github.com/jqlang/jq

Affected ranges

Type
GIT
Repo
https://github.com/jqlang/jq
Events
Database specific
Show details
{
    "cpe": [
        "cpe:2.3:a:jqlang:jq:1.7:-:*:*:*:*:*:*",
        "cpe:2.3:a:jqlang:jq:1.7:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:jqlang:jq:1.7:rc2:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "1.7-NA"
        },
        {
            "last_affected": "1.7-NA"
        },
        {
            "introduced": "1.7-rc1"
        },
        {
            "last_affected": "1.7-rc1"
        },
        {
            "introduced": "1.7-rc2"
        },
        {
            "last_affected": "1.7-rc2"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.7-NA
1.7-rc1
1.7-rc2
= 1.*
= 1.7
jq-1.*
jq-1.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50246.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "290417494101508184750408009799882806556",
                "260357342676783968016454112326919417947",
                "226374140861562014448004111780551132909",
                "38258572163093176609235064461151454765"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-50246-3a1c0ce4",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297",
        "target": {
            "file": "src/jv.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "313161530875538920114687879794730925876",
            "length": 464
        },
        "id": "CVE-2023-50246-fe6c4298",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297",
        "target": {
            "file": "src/jv.c",
            "function": "jvp_literal_number_literal"
        }
    }
]
vanir_signatures_modified
"2026-08-12T14:51:42Z"