Skip to content

CVE-2026-33635 iCalendar has ICS injection via unsanitized URI property values

MediumCVSS 4.3 EPSS 0.26% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

iCalendar is a Ruby library for dealing with iCalendar files in the iCalendar format defined by RFC-5545. Starting in version 2.0.0 and prior to version 2.12.2, .ics serialization does not properly sanitize URI property values, enabling ICS injection through attacker-controlled input, adding arbitrary calendar lines to the output. Icalendar::Values::Uri falls back to the raw input string when URI.parse fails and later serializes it with value.to_s without removing or escaping \r or \n characters. That value is embedded directly into the final ICS line by the normal serializer, so a payload containing CRLF can terminate the original property and create a new ICS property or component. (It looks like you can inject via url, source, image, organizer, attach, attendee, conference, tzurl because of this). Applications that generate .ics files from partially untrusted metadata are impacted. As a result, downstream calendar clients or importers may process attacker-supplied content as if it were legitimate event data, such as added attendees, modified URLs, alarms, or other calendar fields. Version 2.12.2 contains a patch for the issue.

Upgrade path

6 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/ruby-icalendar(Debian 12) = 2.8.0-1; = 2.10.0-1; = 2.10.3-1; All versions No fix listed No fix yet
ubuntu/ruby-icalendar(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ruby-icalendar(Ubuntu 24.04) All versions No fix listed No fix yet
icalendar project icalendar >= 2.0.0, < 2.12.2 2.12.2 Fixed
rubygems icalendar(RubyGems) = 2.0.0; = 2.0.1; = 2.1.0; = 2.1.1 +27 more 2.12.2 Fixed
icalendar = >= 2.0.0, < 2.12.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems icalendar(RubyGems) >= 2.0.0, < 2.12.2 2.12.2
rubygems icalendar(RubyGems) = 2.0.0 No fix listed
rubygems icalendar(RubyGems) = 2.0.1 No fix listed
rubygems icalendar(RubyGems) = 2.1.0 No fix listed
rubygems icalendar(RubyGems) = 2.1.1 No fix listed
rubygems icalendar(RubyGems) = 2.1.2 No fix listed
rubygems icalendar(RubyGems) = 2.10.0 No fix listed
rubygems icalendar(RubyGems) = 2.10.1 No fix listed
rubygems icalendar(RubyGems) = 2.10.2 No fix listed
rubygems icalendar(RubyGems) = 2.10.3 No fix listed
rubygems icalendar(RubyGems) = 2.11.0 No fix listed
rubygems icalendar(RubyGems) = 2.11.1 No fix listed
rubygems icalendar(RubyGems) = 2.11.2 No fix listed
rubygems icalendar(RubyGems) = 2.12.0 No fix listed
rubygems icalendar(RubyGems) = 2.12.1 No fix listed
rubygems icalendar(RubyGems) = 2.2.0 No fix listed
rubygems icalendar(RubyGems) = 2.2.1 No fix listed
rubygems icalendar(RubyGems) = 2.2.2 No fix listed
rubygems icalendar(RubyGems) = 2.3.0 No fix listed
rubygems icalendar(RubyGems) = 2.4.0 No fix listed
rubygems icalendar(RubyGems) = 2.4.1 No fix listed
rubygems icalendar(RubyGems) = 2.5.0 No fix listed
rubygems icalendar(RubyGems) = 2.5.1 No fix listed
rubygems icalendar(RubyGems) = 2.5.2 No fix listed
rubygems icalendar(RubyGems) = 2.5.3 No fix listed
Show 14 more
ProductAffected versionsFixed in
rubygems icalendar(RubyGems) = 2.6.0 No fix listed
rubygems icalendar(RubyGems) = 2.6.1 No fix listed
rubygems icalendar(RubyGems) = 2.7.0 No fix listed
rubygems icalendar(RubyGems) = 2.7.1 No fix listed
rubygems icalendar(RubyGems) = 2.8.0 No fix listed
rubygems icalendar(RubyGems) = 2.9.0 No fix listed
icalendar = >= 2.0.0, < 2.12.2 No fix listed
debian/ruby-icalendar(Debian:12) All versions No fix listed
debian/ruby-icalendar(Debian:12) = 2.10.0-1 No fix listed
debian/ruby-icalendar(Debian:12) = 2.10.3-1 No fix listed
debian/ruby-icalendar(Debian:12) = 2.8.0-1 No fix listed
ubuntu/ruby-icalendar(Ubuntu:22.04) All versions No fix listed
ubuntu/ruby-icalendar(Ubuntu:24.04) All versions No fix listed
icalendar project icalendar >= 2.0.0, < 2.12.2 2.12.2

References