#1143080 rails: CVE-2026-66066

Package:
src:rails
Source:
src:rails
Submitter:
Salvatore Bonaccorso
Date:
2026-10-11 11:55:04 UTC
Severity:
normal
Tags:
#1143080#5
Date:
2026-07-30 08:16:11 UTC
From:
To:
Hi,

The following vulnerability was published for rails.

CVE-2026-66066[0]:
| Possible arbitrary file read and remote code execution in Active
| Storage variant processing

If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-66066
https://www.cve.org/CVERecord?id=CVE-2026-66066
[1] https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1143080#8
Date:
2026-08-02 00:37:40 UTC
From:
To:
Hello,

Bug #1143080 in rails reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/ruby-team/rails/-/commit/da71c5b619c1bdb7e8c6eb67f4bd884619a7bc64

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1143080

#1143080#15
Date:
2026-08-02 00:50:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rails, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143080@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon Quigley <tsimonq2@debian.org> (supplier of updated rails package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 01 Aug 2026 19:35:55 -0500
Source: rails
Architecture: source
Version: 2:7.2.3.2+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Simon Quigley <tsimonq2@debian.org>
Closes: 1143080
Changes:
 rails (2:7.2.3.2+dfsg-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release (Closes: #1143080).
Checksums-Sha1:
 b0c534cb7ae585568677e6601bd1fb004127a669 4666 rails_7.2.3.2+dfsg-1.dsc
 06d31344ca5207f81b6da0d0218906096a1d6b8c 8080472 rails_7.2.3.2+dfsg.orig.tar.xz
 2fd6a68a1734b7e1d5e01da7b5d19b062490c41e 103264 rails_7.2.3.2+dfsg-1.debian.tar.xz
 85803f4c03e0c837d5def8492968a34dfa299d57 7310 rails_7.2.3.2+dfsg-1_source.buildinfo
Checksums-Sha256:
 9dcf04c066e3ad96e2b72ed067bbaaabb855512f7a207f2ad6861f1154ac7f59 4666 rails_7.2.3.2+dfsg-1.dsc
 80ac6ba4b140fb88c2a20d983ce565d1f8fd868b613dc407d08c0ec35581c1bc 8080472 rails_7.2.3.2+dfsg.orig.tar.xz
 b76a34f597c6b27b97896f6a7dc9c2a0fda35ac8ba25d5674a220f311661ced5 103264 rails_7.2.3.2+dfsg-1.debian.tar.xz
 71f24a28e1735b770b68a359d9e6f18b29f646367b2f57124066e09b66d3371e 7310 rails_7.2.3.2+dfsg-1_source.buildinfo
Files:
 29eaea3cf43fed5246744af19fe20831 4666 ruby optional rails_7.2.3.2+dfsg-1.dsc
 be62dc7b56d474e95dca8d20bca56c58 8080472 ruby optional rails_7.2.3.2+dfsg.orig.tar.xz
 4615e583aed26caca2a8cb30ac315050 103264 ruby optional rails_7.2.3.2+dfsg-1.debian.tar.xz
 947053e910927a6ffd9e6964f295062d 7310 ruby optional rails_7.2.3.2+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmpukUYACgkQ4n8s+EWM
L6Rh6g/9HtdUazz8i2Z2egWYQcZB1tVsib+D9VmRaeeCW2LofL/k+LDh47sOexkT
O3RsAiKzM9y/x+hEPXZFnoKMFnRnVg0BEzGm/fB6Rn4ssDRiguvF0WAAg4GH082F
TFfvm8BSHa6TH6Qj5eDEZ6z+GI97sZLgeFqHfXoX6zJs32F1uCN169voFZImUXj0
5xtyQtDmUnnLqN2BSiC9t9Goy39AYiC444U963Tokk5GtT6h1mKPtj8efsqMKiIf
UFaXUqH3DPTAuLgoS/i6RyH7pCgKSfAWLEUF2JoVyiGJaUAhBmYMMQ+XFUJz0K+q
ODmpuwCcP7tEdzmAFfC3x99jVbRPko5Qsy8jB1fs8ED0MfJomxBjN+XhPvoJXIw5
OShODisEAmrzahiaRnR9Vs2xjTwu5ds6FEJEjhoMhR2SNJ3Ae+g6xDW+CkxosJj9
hG8t71Ar2jgVZI99jHLojl2pKc27nFlZbisyAYmETmoiblEnSnf7WvzTPG+t6aMj
E3zHYaRqdPRSo5ugiFMaVRE4tOxHsWuGhY469jWRCb5iuiOHUbDKqVqna3x7XtrG
w6P+bNbvIHQCLNN19nBFwKwXXQscYlG3oIs88gpRdl7OdYY2JtaBf+PtElnVdKfN
VSFecylaeUanP6M1cmJi3i+mAj7LGg1vARaFrddudojXMDvhgYQ=
=50vo
-----END PGP SIGNATURE-----

#1143080#28
Date:
2026-10-11 11:52:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rails, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143080@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon Quigley <tsimonq2@debian.org> (supplier of updated rails package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 04 Oct 2026 16:13:12 -0500
Source: rails
Architecture: source
Version: 2:7.2.2.2+dfsg-2~deb13u2
Distribution: trixie-security
Urgency: high
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Simon Quigley <tsimonq2@debian.org>
Closes: 1132035 1143080
Changes:
 rails (2:7.2.2.2+dfsg-2~deb13u2) trixie-security; urgency=high
 .
   * CVE-2026-66066: disable libvips unfuzzed loaders and savers when
     Active Storage loads ruby-vips. BMP, ICO, and PSD variants then
     raise Vips::Error (Closes: #1143080).
   * CVE-2026-33168: skip blank HTML attribute names in tag helpers.
     A blank attribute name bypasses escaping and produces malformed
     HTML. A crafted value can be read as a separate attribute, possibly
     leading to XSS (Closes: #1132035).
   * CVE-2026-33169: delimit numbers without the backtracking expression.
     The lookahead regular expression and gsub! can take quadratic time
     on a long digit string (Closes: #1132035).
   * CVE-2026-33170: keep an unsafe SafeBuffer unsafe after %.
     SafeBuffer#% does not copy the html_safe flag. Formatting a buffer
     mutated in place, with untrusted arguments, reports html_safe? and
     bypasses ERB escaping (Closes: #1132035).
   * CVE-2026-33173: drop analyzed, identified, and composed from
     direct uploads.
     Direct upload metadata can set those flags, skip MIME detection,
     and claim a safe content_type for other content (Closes: #1132035).
   * CVE-2026-33174: reject Active Storage byte ranges larger than 100MB.
     The proxy loads the whole requested byte range into memory. A large
     or unbounded Range header can exhaust memory. Ranges whose total
     size reaches 100MB are now rejected (Closes: #1132035).
   * CVE-2026-33176: do not expand scientific notation in number helpers.
     Strings such as 1e10000 are expanded by BigDecimal into a huge
     representation, which can exhaust memory and CPU (Closes: #1132035).
   * CVE-2026-33195: reject disk keys that leave the Active Storage root.
     DiskService#path_for does not keep the resolved path inside the
     storage root. A key containing ../ can read, write, or delete files
     outside it (Closes: #1132035).
   * CVE-2026-33202: escape glob metacharacters in
     DiskService#delete_prefixed.
     The prefix is passed to Dir.glob without escaping. A key containing
     glob metacharacters can delete a different file (Closes: #1132035).
   * CVE-2026-33658: allow only one byte range on Active Storage proxies.
     The proxy does not limit how many ranges a Range header may contain.
     Thousands of small ranges use much more CPU than one request for the
     same file (Closes: #1132035).
Checksums-Sha1:
 647af4aab1c6a55b60b9cb720554baa4e9c944c5 4704 rails_7.2.2.2+dfsg-2~deb13u2.dsc
 e1ce8744c85847eaf81dffb1c2436271dc3c43ec 115212 rails_7.2.2.2+dfsg-2~deb13u2.debian.tar.xz
 01c194615a2b4599d171f1c019a63dc39f1148db 21120 rails_7.2.2.2+dfsg-2~deb13u2_source.buildinfo
Checksums-Sha256:
 2a17eb5a9c943ebf358525e1d170a1b93f685f7e657f5ad539871b513789b6c3 4704 rails_7.2.2.2+dfsg-2~deb13u2.dsc
 33bf3623384401509bfc0a48ea864bdea8eae245a053cdf2789b37dd67688ab6 115212 rails_7.2.2.2+dfsg-2~deb13u2.debian.tar.xz
 b7d493a01e645b18147a6e8194b12d85e7b67e731a22b170870e04389344e1d2 21120 rails_7.2.2.2+dfsg-2~deb13u2_source.buildinfo
Files:
 26717cee511e673179ec708f9bf360bc 4704 ruby optional rails_7.2.2.2+dfsg-2~deb13u2.dsc
 0507b6a8774496ada3dd0c1e29e0fc88 115212 ruby optional rails_7.2.2.2+dfsg-2~deb13u2.debian.tar.xz
 70c96df2535b35d71d39989eaf15bb85 21120 ruby optional rails_7.2.2.2+dfsg-2~deb13u2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmrD7SQACgkQ4n8s+EWM
L6RDqA/9HhKKHzM9HRRtGTQM49Lk5WJZaCH/dGWZLnd4zbWAdyKVoanGvtIzg3P+
8j1Ax2kvLiH44n0fsJkZIwxhT0+98AvxvP7PBa3CgITvrCva/DMAoQ1E5yDGtL6p
4uWtjsIwhkS55vmrePgTUpnR2cEVLxQnLFTHoMKjJvbYZ+g5W2vzRn0L0xnFeDvm
eVf4fyc/Ukx3bQgl8j++D1NUg0/UFqlUQZUcxQhtv0uRqXGN3tdQ6DSrK/bSJBLP
aUlaSAeLMxnJTqxuZQkYqyC5knVH16NHBF0E3glcyB2mbIO2TiSttDvlv9XF2MAP
gUPWqlmI8N1TaW/O9+b4Nlw6iluQsEajRmSx4iJlKn3l8luv08H8wkQEdwI/gayD
5JGMPQ1vdt61JQ6IreI6jHyF5pAyrlQ7srxxsa7pnIDw2OtlNuKSZuWgfvl+dZn4
6vba5u+bIj3OLxFnkbE3Pkh0kRbXf6GQtB/z1/vfKRSHBCBTUHAn/VkehOPOlfG+
la9uSt7HnnNULi6SdHFWwr5xibxYS3McMed3mI/6jGFpTldVlTL5/F7ZZlVU12ta
CmBod/bpfYcjSxeJl5458nyGD1kyW6DHIdrZjGlU3NZIpZzTgy+IEB6bvAZuTGW1
g91oPvGtJ9SDPQ+/dAfSqYtqT9A/DnT2EyNhUTTh2RKKW8RxqFs=
=CF6D
-----END PGP SIGNATURE-----