I think Deuteronomy 28 is the longest chapter in the Torah, though I haven't tried to confirm that. Anyway, it's actually an expanded version of Leviticus 26, which recites the blessings the people will receive if they obey Yahweh and the evil that will befall them if they don't. It even uses some of the same language; the blessing section is quite similar, but it adds a lot to the curse part. I actually do recommend that you read this, for the black comedy value.
Update: After I posted this, by coincidence I learned that Flavius Josephus, in his account of the rebellion against Roman rule that culminated in the sack of Jerusalem and destruction of the temple in 70 CE, tells the story of a starving woman who eats her own infant. Josephus was Jewish (he was born Yosef ben Matityahu), and I suspect he got the idea from this chapter. His account of the war is generally considered to include invented material.
28 “And if you obey the voice of the Lord your God, being careful to do all his commandments which I command you this day, the Lord your God will set you high above all the nations of the earth. 2 And all these blessings shall come upon you and overtake you, if you obey the voice of the Lord your God. 3 Blessed shall you be in the city, and blessed shall you be in the field. 4 Blessed
shall be the fruit of your body, and the fruit of your ground, and the
fruit of your beasts, the increase of your cattle, and the young of your
flock. 5 Blessed shall be your basket and your kneading-trough. 6 Blessed shall you be when you come in, and blessed shall you be when you go out.
7 “The Lord
will cause your enemies who rise against you to be defeated before you;
they shall come out against you one way, and flee before you seven
ways. 8 The Lord will command the blessing upon you in your barns, and in all that you undertake; and he will bless you in the land which the Lord your God gives you. 9 The Lord will establish you as a people holy to himself, as he has sworn to you, if you keep the commandments of the Lord your God, and walk in his ways. 10 And all the peoples of the earth shall see that you are called by the name of the Lord; and they shall be afraid of you. 11 And the Lord
will make you abound in prosperity, in the fruit of your body, and in
the fruit of your cattle, and in the fruit of your ground, within the
land which the Lord swore to your fathers to give you. 12 The Lord
will open to you his good treasury the heavens, to give the rain of
your land in its season and to bless all the work of your hands; and you
shall lend to many nations, but you shall not borrow. 13 And the Lord
will make you the head, and not the tail; and you shall tend upward
only, and not downward; if you obey the commandments of the Lord your God, which I command you this day, being careful to do them, 14 and
if you do not turn aside from any of the words which I command you this
day, to the right hand or to the left, to go after other gods to serve
them.
Warnings against Disobedience
15 “But if you will not obey the voice of the Lord
your God or be careful to do all his commandments and his statutes
which I command you this day, then all these curses shall come upon you
and overtake you. 16 Cursed shall you be in the city, and cursed shall you be in the field. 17 Cursed shall be your basket and your kneading-trough. 18 Cursed shall be the fruit of your body, and the fruit of your ground, the increase of your cattle, and the young of your flock. 19 Cursed shall you be when you come in, and cursed shall you be when you go out.
20 “The Lord
will send upon you curses, confusion, and frustration, in all that you
undertake to do, until you are destroyed and perish quickly, on account
of the evil of your doings, because you have forsaken me. 21 The Lord will make the pestilence cleave to you until he has consumed you off the land which you are entering to take possession of it. 22 The Lord will smite you with consumption, and with fever, inflammation, and fiery heat, and with drought, and with blasting, and with mildew;
Mildew?
they shall pursue you until you perish. 23 And the heavens over your head shall be brass, and the earth under you shall be iron. 24 The Lord will make the rain of your land powder and dust; from heaven it shall come down upon you until you are destroyed.
25 “The Lord
will cause you to be defeated before your enemies; you shall go out one
way against them, and flee seven ways before them; and you shall be a
horror to all the kingdoms of the earth. 26 And
your dead body shall be food for all birds of the air, and for the
beasts of the earth; and there shall be no one to frighten them away. 27 The Lord will smite you with the boils of Egypt, and with the ulcers and the scurvy and the itch, of which you cannot be healed. 28
KJV has hemorrhoids rather than ulcers, and I expect that's more accurate.
The Lord will smite you with madness and blindness and confusion of mind; 29 and
you shall grope at noonday, as the blind grope in darkness, and you
shall not prosper in your ways; and you shall be only oppressed and
robbed continually, and there shall be no one to help you. 30 You
shall betroth a wife, and another man shall lie with her; you shall
build a house, and you shall not dwell in it; you shall plant a
vineyard, and you shall not use the fruit of it. 31 Your
ox shall be slain before your eyes, and you shall not eat of it; your
ass shall be violently taken away before your face, and shall not be
restored to you; your sheep shall be given to your enemies, and there
shall be no one to help you. 32 Your
sons and your daughters shall be given to another people, while your
eyes look on and fail with longing for them all the day; and it shall
not be in the power of your hand to prevent it. 33 A
nation which you have not known shall eat up the fruit of your ground
and of all your labors; and you shall be only oppressed and crushed
continually; 34 so that you shall be driven mad by the sight which your eyes shall see. 35 The Lord
will smite you on the knees and on the legs with grievous boils of
which you cannot be healed, from the sole of your foot to the crown of
your head.
36 “The Lord
will bring you, and your king whom you set over you, to a nation that
neither you nor your fathers have known; and there you shall serve other
gods, of wood and stone. 37 And you shall become a horror, a proverb, and a byword, among all the peoples where the Lord will lead you away. 38 You shall carry much seed into the field, and shall gather little in; for the locust shall consume it. 39 You
shall plant vineyards and dress them, but you shall neither drink of
the wine nor gather the grapes; for the worm shall eat them. 40 You
shall have olive trees throughout all your territory, but you shall not
anoint yourself with the oil; for your olives shall drop off. 41 You shall beget sons and daughters, but they shall not be yours; for they shall go into captivity. 42 All your trees and the fruit of your ground the locust shall possess. 43 The sojourner who is among you shall mount above you higher and higher; and you shall come down lower and lower. 44 He shall lend to you, and you shall not lend to him; he shall be the head, and you shall be the tail. 45 All
these curses shall come upon you and pursue you and overtake you, till
you are destroyed, because you did not obey the voice of the Lord your God, to keep his commandments and his statutes which he commanded you. 46 They shall be upon you as a sign and a wonder, and upon your descendants for ever.
47 “Because you did not serve the Lord your God with joyfulness and gladness of heart, by reason of the abundance of all things, 48 therefore you shall serve your enemies whom the Lord
will send against you, in hunger and thirst, in nakedness, and in want
of all things; and he will put a yoke of iron upon your neck, until he
has destroyed you. 49 The Lord
will bring a nation against you from afar, from the end of the earth,
as swift as the eagle flies, a nation whose language you do not
understand, 50 a nation of stern countenance, who shall not regard the person of the old or show favor to the young, 51 and
shall eat the offspring of your cattle and the fruit of your ground,
until you are destroyed; who also shall not leave you grain, wine, or
oil, the increase of your cattle or the young of your flock, until they
have caused you to perish. 52 They
shall besiege you in all your towns, until your high and fortified
walls, in which you trusted, come down throughout all your land; and
they shall besiege you in all your towns throughout all your land, which
the Lord your God has given you. 53 And you shall eat the offspring of your own body, the flesh of your sons and daughters, whom the Lord your God has given you, in the siege and in the distress with which your enemies shall distress you. 54 The
man who is the most tender and delicately bred among you will grudge
food to his brother, to the wife of his bosom, and to the last of the
children who remain to him; 55 so
that he will not give to any of them any of the flesh of his children
whom he is eating, because he has nothing left him, in the siege and in
the distress with which your enemy shall distress you in all your towns.
56 The
most tender and delicately bred woman among you, who would not venture
to set the sole of her foot upon the ground because she is so delicate
and tender, will grudge to the husband of her bosom, to her son and to
her daughter, 57 her
afterbirth that comes out from between her feet and her children whom
she bears, because she will eat them secretly, for want of all things,
in the siege and in the distress with which your enemy shall distress
you in your towns.
Yep, you'll eat your own children.
58 “If
you are not careful to do all the words of this law which are written
in this book, that you may fear this glorious and awful name, the Lord your God, 59 then the Lord
will bring on you and your offspring extraordinary afflictions,
afflictions severe and lasting, and sicknesses grievous and lasting. 60 And he will bring upon you again all the diseases of Egypt, which you were afraid of; and they shall cleave to you. 61 Every sickness also, and every affliction which is not recorded in the book of this law, the Lord will bring upon you, until you are destroyed. 62 Whereas
you were as the stars of heaven for multitude, you shall be left few in
number; because you did not obey the voice of the Lord your God. 63 And as the Lord took delight in doing you good and multiplying you, so the Lord
will take delight in bringing ruin upon you and destroying you; and you
shall be plucked off the land which you are entering to take possession
of it. 64 And the Lord
will scatter you among all peoples, from one end of the earth to the
other; and there you shall serve other gods, of wood and stone, which
neither you nor your fathers have known. 65 And among these nations you shall find no ease, and there shall be no rest for the sole of your foot; but the Lord will give you there a trembling heart, and failing eyes, and a languishing soul; 66 your life shall hang in doubt before you; night and day you shall be in dread, and have no assurance of your life. 67 In
the morning you shall say, ‘Would it were evening!’ and at evening you
shall say, ‘Would it were morning!’ because of the dread which your
heart shall fear, and the sights which your eyes shall see. 68 And the Lord
will bring you back in ships to Egypt, a journey which I promised that
you should never make again; and there you shall offer yourselves for
sale to your enemies as male and female slaves, but no man will buy
you.”