Security advisory
In CCN-lite 2, the function ccnl_prefix_to_str_detailed can cause a buffer overflow, when writing a prefix to the buffer buf. The maximal size of the prefix is CCNL_MAX_PREFIX_SIZE; the buffer has the size CCNL_MAX_PREFIX_SIZE. However, when NFN is enabled, additional characters are written to the buffer (e.g., the "NFN" and "R2C" tags). Therefore, sending an NFN-R2C packet with a prefix of size CCNL_MAX_PREFIX_SIZE can cause an overflow of buf inside ccnl_prefix_to_str_detailed.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-6948
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:10 UTC · Revision 1
Source evidence
In CCN-lite 2, the function ccnl_prefix_to_str_detailed can cause a buffer overflow, when writing a prefix to the buffer buf. The maximal size of the prefix is CCNL_MAX_PREFIX_SIZE; the buffer has the size CCNL_MAX_PREFIX_SIZE. However, when NFN is enabled, additional characters are written to the buffer (e.g., the "NFN" and "R2C" tags). Therefore, sending an NFN-R2C packet with a prefix of size CCNL_MAX_PREFIX_SIZE can cause an overflow of buf inside ccnl_prefix_to_str_detailed.
osv:CVE-2018-6948
Complete source record
{
"id": "d89da070e6bba1f175c8505167e2a69ab67142d04ad6c9f56df3697166597743",
"url": "https://osv.dev/vulnerability/CVE-2018-6948",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-6948",
"summary": "In CCN-lite 2, the function ccnl_prefix_to_str_detailed can cause a buffer overflow, when writing a prefix to the buffer buf. The maximal size of the prefix is CCNL_MAX_PREFIX_SIZE; the buffer has the size CCNL_MAX_PREFIX_SIZE. However, when NFN is enabled, additional characters are written to the buffer (e.g., the \"NFN\" and \"R2C\" tags). Therefore, sending an NFN-R2C packet with a prefix of size CCNL_MAX_PREFIX_SIZE can cause an overflow of buf inside ccnl_prefix_to_str_detailed.",
"evidence": "osv:CVE-2018-6948",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-6948",
"aliases": [
"CVE-2018-6948"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cn-uofbasel/ccn-lite",
"type": "GIT",
"events": [
{
"introduced": "063fd8ad7e74f24410ef8fd9e23673c532500df5"
},
{
"last_affected": "063fd8ad7e74f24410ef8fd9e23673c532500df5"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ccn-lite:ccn-lite:2.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"last_affected": "2.0.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6948.json"
}
}
],
"modified": "2026-10-20T10:49:56.391522972Z",
"provider": "osv",
"references": [
"https://github.com/cn-uofbasel/ccn-lite/issues/193"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-6948",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381002,
"published_at": "2018-02-13T17:29:00.25+00:00"
}